cmake_minimum_required(VERSION 3.10)
#generated_code_begin

set(SERVICE_DIR ${PROJECT_SOURCE_DIR}/../../../..)

set(SERVICE_DIR ${PROJECT_SOURCE_DIR}/../../../..)
file(GLOB USR_IMPL_SRC ${SERVICE_DIR}/usr/impl/guildservicewelfare/GuildServiceWelfare/*.cpp)
set(USR_INCLUDE_DIR ${SERVICE_DIR}/usr/impl/guildservicewelfare/GuildServiceWelfare)
set(USR_LINK_LIB ${SERVICE_DIR}/lib/guildservicewelfare/libguildservicewelfare.a)
#generated_code_end


#add you own code here

set(GUILD_SERVICE_WELFARE_DIR ${SERVICE_DIR}/usr/guildservice/src/guildservicewelfare)
#append your own include dir by
list(APPEND USR_INCLUDE_DIR 
    ${SERVICE_DIR}/src/include
    ${SERVICE_DIR}/src/include/guildservicewelfare
    ${SERVICE_DIR}/src/include/guildservicewelfare/protobuf
    ${SERVICE_DIR}/src/include/root
    ${SERVICE_DIR}/../../thirdparty
    ${SERVICE_DIR}/..
    ${SERVICE_DIR}/usr/guildservice/include
    ${GUILD_SERVICE_WELFARE_DIR}
    ${GUILD_SERVICE_WELFARE_DIR}/../../include
    /usr/local/include/hiredis
)
#append your own source file by
#list(APPEND USR_IMPL_SRC your_source_file)
aux_source_directory(${SERVICE_DIR}/src/guildservicewelfare USR_IMPL_SRC)
aux_source_directory(${SERVICE_DIR}/src/guildservicewelfare/protobuf USR_IMPL_SRC) #pb
aux_source_directory(${SERVICE_DIR}/../../thirdparty/src/base64 USR_IMPL_SRC) #base64
aux_source_directory(${GUILD_SERVICE_WELFARE_DIR}/ USR_IMPL_SRC)
aux_source_directory(${GUILD_SERVICE_WELFARE_DIR}/logic USR_IMPL_SRC)
aux_source_directory(${GUILD_SERVICE_WELFARE_DIR}/error USR_IMPL_SRC)
list(APPEND USR_IMPL_SRC ${SERVICE_DIR}/../util/time_util.cpp) #time_util
#append your own thirdparty dir by 
#list(APPEND USR_LINK_DIR your_own_link_dir)
#append your own universal linklib, not difference between debug mode and release mode
# list(APPEND USR_LINK_LIB
#     $<$<CONFIG:Debug>:${SERVICE_DIR}/usr/guildservice/src/guildservicewelfare/build/Debug/lib/libguild_service_welfare.a 
#       ${SERVICE_DIR}/lib/proxy/guildservicewelfare/GuildClientWelfare/libGuildClientWelfare_proxy.a>
#     $<$<CONFIG:Release>:${SERVICE_DIR}/usr/guildservice/src/guildservicewelfare/build/Release/lib/libguild_service_welfare.a 
#       ${SERVICE_DIR}/lib/proxy/guildservicewelfare/GuildClientWelfare/libGuildClientWelfare_proxy.a>
# )
#end
